package com.dhl.prototypepattern.tradition;

/**
 * @title: 传统模式拷贝对象
 * @Author danghailiang
 * @Date: 2022/7/28 21:10
 * @Version 1.0
 */
public class TomTest {
    public static void main(String[] args) {
        Tom tom = new Tom(1L,"小山羊");
        Tom tom1 = new Tom(tom.getId(), tom.getName());
        Tom tom2= new Tom(tom.getId(), tom.getName());
        Tom tom3 = new Tom(tom.getId(), tom.getName());
        Tom tom4 = new Tom(tom.getId(), tom.getName());
    }
}
